/*
 * @(#)Permission.java
 * 
 * Create Version: 1.0.0
 * Author: James Liu
 * Create Date: 2009-12-09
 * 
 * Copyright (c) 2009 ASPire Information Technologies Ltd. All Right Reserved.
 */
package com.aspire.boc.mms.wmf.cam;


import java.io.Serializable;


/**
 * CAM value object.
 * 
 * @version 1.0.0   2009-12-09
 * @author  James Liu
 */
public class Permission implements Serializable {
    
    private static final long serialVersionUID = 6803666706084366807L;
    
    private int id;
    private String resourceName;
    private String resourceString;
    private int resourceType;
    private String operation;
    private boolean fineGrained4Bool;
    private String desc;
    private String systemDef;
    
    
    public int getId() {
    
        return id;
    }
    
    public void setId(int id) {
    
        this.id = id;
    }
    
    public String getResourceName() {
    
        return resourceName;
    }
    
    public void setResourceName(String resourceName) {
    
        this.resourceName = resourceName;
    }
    
    public String getResourceString() {
    
        return resourceString;
    }
    
    public void setResourceString(String resourceString) {
    
        this.resourceString = resourceString;
    }
    
    public int getResourceType() {
    
        return resourceType;
    }
    
    public void setResourceType(int resourceType) {
    
        this.resourceType = resourceType;
    }
    
    public String getOperation() {
    
        return operation;
    }
    
    public void setOperation(String operation) {
    
        this.operation = operation;
    }
    
    public boolean isFineGrained4Bool() {
    
        return fineGrained4Bool;
    }
    
    public void setFineGrained4Bool(boolean fineGrained4Bool) {
    
        this.fineGrained4Bool = fineGrained4Bool;
    }
    
    public String getDesc() {
    
        return desc;
    }
    
    public void setDesc(String desc) {
    
        this.desc = desc;
    }
    
    public String getSystemDef() {
    
        return systemDef;
    }
    
    public void setSystemDef(String systemDef) {
    
        this.systemDef = systemDef;
    }
    
    public String toString() {
        
        StringBuilder result = new StringBuilder();
        
        result.append("Permission[id=")
              .append(this.getId())
              .append(", resourceName=")
              .append(this.getResourceName())
              .append(", resourceString=")
              .append(this.getResourceString())
              .append(", resourceType=")
              .append(this.getResourceType())
              .append(", operation=")
              .append(this.getOperation())
              .append(", fineGrained4Bool=")
              .append(this.isFineGrained4Bool())
              .append(", desc=")
              .append(this.getDesc())
              .append(", systemDef=")
              .append(this.getSystemDef())
              .append("]");
        
        return result.toString();
    }
}